﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RSModels
{
    public enum CompanyType
    {
        Transportation = 0,
        Treatment = 1,
        Transfer = 2
    }

    public class Company
    {
        public int ID { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public string AuthorizedTime { get; set; }

        public Position CompanyPosition { get; set; }

        public CompanyType CompanyType { get; set; }
        //public string CompanyTypeS => CompanyType switch
        //{
        //    CompanyType.Transportation => "垃圾运输公司",
        //    CompanyType.Treatment => "垃圾处理公司",
        //    CompanyType.Transfer => "垃圾中转站",
        //    _ => "未知",
        //};
        public string CompanyTypeS 
        {
            get 
            {
                switch(CompanyType)
                {
                    case CompanyType.Transportation: return "垃圾运输公司";
                    case CompanyType.Treatment: return "垃圾处理公司";
                    case CompanyType.Transfer: return "垃圾中转站";
                    default: return "未知";
                }
            }
        }
    }
}
